<%@ page language="java" import="java.util.*,com.sr.data.*" pageEncoding="UTF-8"%>


<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
  	<title>新增项目</title>

	<style type="text/css" media="screen">
                .center{
                       
                       margin:8%;
                       text-align:center; 
                }
     </style>
     <SCRIPT language="javascript" type="text/javascript" src="/scientific/js/checkadd.js"></SCRIPT>
    <SCRIPT language="javascript" type="text/javascript">
	function load()
	{
		document.getElementById("pID").focus();
	}
	</SCRIPT>
	
  </head>
<!--  ?type=ADD-->  
  <body onload="load()">
  <div class="center">
    <form action="/scientific/AddBase" onsubmit="return validate_form(this)" method="post">
<!--    -->
	 <table border="0" style="MARGIN-RIGHT: auto; MARGIN-LEFT: auto; width:600px;font-size: 22px;">
	    <tr align="center"><td colspan=2><h1>新增项目</h1></td></tr>
	       <%
	   srProject srp=(srProject)request.getAttribute("updateBaseProject");
	   %>

<% String message = "Warning Info ..."; out.println("<SCRIPT LANGUAGE='JavaScript'>"); out.println("<!--"); out.println("alert('"+message+"')"); out.println("//-->"); out.println("</SCRIPT>"); %>     
    <tr align="center"><td>项目编号：</td><td><input type="text" name="pID" style="width: 400px;height: 30px;font-size: 22px;" value="<%= srp==null? "":srp.getprojectID() %>" /></td></tr>
    <tr align="center"><td>项目名称：</td><td><input type="text" name="pName" style="width: 400px;height: 30px;font-size: 22px;" value="<%= srp==null? "":srp.getprojectName() %>" /></td></tr>
	<tr align="center"><td>部门：</td><td><input type="text" name="department" style="width: 400px;height: 30px;font-size: 22px;" value="<%= srp==null? "":srp.getDepartment() %>" /></td></tr>	
	<tr align="center"><td>开始时间：</td><td><input type="text" name="bDate" style="width: 400px;height: 30px;font-size: 22px;" value="<%= srp==null? "":srp.getDateS1() %>" /></td></tr>	
	<tr align="center"><td>结束时间：</td><td><input type="text" name="eDate" style="width: 400px;height: 30px;font-size: 22px;" value="<%= srp==null? "":srp.getDateS2() %>" /></td></tr>	
	<tr align="center"><td>负责人：</td><td><input type="text" name="pLeader" style="width: 400px;height: 30px;font-size: 22px;" value="<%= srp==null? "":srp.getProjectLeader() %>" /></td></tr>
	<tr align="center"><td>人数：</td><td><input type="text" name="mainMembers" style="width: 400px;height: 30px;font-size: 22px;" value="<%= srp==null? "":srp.getMainMembers()%>" /></td></tr>
	<tr align="center"><td>委托单位：</td><td><input type="text" name="fromOrg" style="width: 400px;height: 30px;font-size: 22px;" value="<%= srp==null? "":srp.getFromOrg() %>" /></td></tr>	
	<tr align="center"><td>项目类型：</td><td><input type="text" name="typeProject" style="width: 400px;height: 30px;font-size: 22px;" value="<%= srp==null? "":srp.getTypeProject() %>" /></td></tr>
	<tr align="center"><td>项目级别：</td><td><input type="text" name="levelProject" style="width: 400px;height: 30px;font-size: 22px;" value="<%= srp==null? "":srp.getLevelProject() %>" /></td></tr>
	<tr align="center"><td>学科领域：</td><td><input type="text" name="discipline" style="width: 400px;height: 30px;font-size: 22px;" value="<%= srp==null? "":srp.getDiscipline() %>" /></td></tr>	
	<tr><td><br></td></tr>
	 <%
    if(request.getAttribute("ExpAddError")!=null)
    {
     %>
     <tr align="center"><td colspan=2><font color="red"><%=request.getAttribute("ExpAddError") %></font></td></tr>
     <tr><td><br></td></tr>
     <%
     }
      %>
      
    <tr align="center"><td colspan=2><input type="submit" style="width:70px;height:30px ; font-size:20px;" value="新增" />
    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="/scientific/jsp/base/baseindex.jsp">返回</a></td></tr>
     </table> 
     </form>
    </div>   	
  </body>
</html>
